package com.dragons.spring5.factory_bean;

import com.dragons.spring5.collectiontype.Course;
import org.springframework.beans.factory.FactoryBean;

public class MyBean implements FactoryBean<Course> {
    @Override
    public Course getObject() throws Exception {
        Course course=new Course();
        course.setCname("aaaaaaaaaaa");
        return course;
    }
    @Override
    public Class<?> getObjectType() { return null; }
    @Override
    public boolean isSingleton() { return false; }
}
